import {RequestUtil} from '@/utils'

export class PopBasicHttp {
    static PREFIX = "/manager/pop/dis"

    static addExchange = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/exchange/add`, data)

    static updateExchange = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/exchange/update/${id}`, data)

    static delExchange = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/exchange/delete`, data)


    static getExchangeList = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/exchange/pageList`, params)


}
